import re

vowels = 'AEIOUY'
consonants = 'BCDFGHJKLMNPQRSTVWXZ'
vowels += vowels.lower()
consonants += consonants.lower()

syllables_dict = {}

def syllable(sc,tok):
	return tok

def punctuation(sc,tok):
	return tok

syllable_re = r'['+consonants+']*'+'['+vowels+']*'
print syllable_re
punctuation_re = r'[^'+consonants+vowels+']'
punctuation_re = r'.'
print punctuation_re
scanner = re.Scanner([
	(syllable_re,syllable),
	(punctuation_re,punctuation),
])

def transliterate(en):
	syllables,rest = scanner.scan(en)
	return syllables,rest


if __name__=="__main__":
	print transliterate("Yes, transliteration! My name is Taras.")
